#ifndef IMAGEROTATOR_H
#define IMAGEROTATOR_H
#include "ui_imagerotator.h"


#include"widget.h"
#include <QWidget>
#define TIMEOUT 1*1000
#include<QFile>
#include<QFileDialog>
#include<QString>
#include<QList>


namespace Ui {
class ImageRotator;
}

class ImageRotator : public QWidget
{
    Q_OBJECT
private:
    QList<QPixmap> importedImages; // 存储导入的图片
    int currentImageIndex = 0;      // 当前显示的图片索引

public:
    explicit ImageRotator(QWidget *parent = nullptr);
    ~ImageRotator();
    virtual void timerEvent(QTimerEvent *event);    
private slots:
    void on_startButton_clicked();

    void on_stopButton_clicked();

    void on_back2wButton_clicked();

    void on_importButton_clicked();

private:
    Ui::ImageRotator *ui;
    int myTimerId;
    int picID;

public:
    void importImages();};

#endif // IMAGEROTATOR_H
